<template>
  <div class="boxs">
    <div class="banner"></div>
    <div class="f1">
      <div class="breadcrumb">
        <h6 @click="$router.go(-1)">
          <img src="@/assets/home/back.png" alt="" />
          返回上一页
        </h6>
      </div>
      <div class="f1_content">
        <h6 class="title">{{ title }}</h6>
        <div class="content">
          <div class="source">
            <h4>来源：通途后台</h4>
            <h4>发布时间：2024-01-31</h4>
          </div>
          <div class="contents">
            <p v-for="(item, index) in 5" :key="index">
              {{ index + 1 + ". " + content }}
            </p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { onMounted, ref } from "vue";
import { useRoute } from "vue-router";
const title = ref("");
const content = ref("");
const route = useRoute();

onMounted(() => {
  title.value = route.query.title;
  content.value = route.query.content;

  document.documentElement.scrollTop = 0;
});
</script>

<style lang="scss" scoped>
/*去掉列表前面的小点*/
ul {
  list-style: none;
}
.boxs {
  position: relative;
  width: 100%;
  height: 1000px;
  box-sizing: border-box;
  padding-bottom: 80px;
  background: #f5f7fa;
  .banner {
    position: absolute;
    width: 100%;
    height: 200px;
    background: url(@/assets/image/组310.png);
    background-size: 100% 100%;
    z-index: 0;
  }
  .f1 {
    width: 100%;
    position: absolute;
    .breadcrumb {
      position: relative;
      margin: 0 auto;
      width: 1200px;
      height: 76px;
      background-color: rgba(255, 255, 255, 0);
      h6 {
        position: absolute;
        right: 35px;
        box-sizing: border-box;
        padding-top: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        font-size: 16px;
        font-weight: 300;
        color: #ffffff;
        text-decoration: underline;
        img {
          width: 16px;
          margin-right: 8px;
        }
      }
    }
    .f1_content {
      box-sizing: border-box;
      padding: 22px 60px;
      margin: 0 auto;
      width: 1200px;
      height: 800px;
      background: #fff;
      border-radius: 4px;
      .title {
        text-align: center;
        width: 100%;
        height: 55px;
        font-size: 28px;
        font-weight: 500;
        color: #000000;
        border-bottom: 1px solid #e0e0e0;
      }
      .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 25px 0;
        .source {
          display: flex;
          justify-content: flex-end;
          align-items: center;
          width: 100%;
          height: 40px;
          margin-bottom: 20px;
          h4 {
            font-weight: 400;
            font-size: 16px;
            color: #9f9f9f;
            margin-left: 30px;
          }
        }
        .contents {
          box-sizing: border-box;
          padding: 30px;
          // display: flex;
          // align-items: center;
          // justify-content: center;
          width: 990px;
          height: 518px;
          background: #fff;
          p {
            font-family: "Microsoft YaHei";
            font-weight: 400;
            font-size: 16px;
            color: #777;
            text-indent: 2em;
            line-height: 30px;
            margin-bottom: 10px;
          }
        }
      }
    }
  }
}
</style>
